﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.AccessModels>" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    SelectDateTime
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        $(function () {

//                        $("#DateTimeIn").datepicker({
//                            dateFormat: 'dd-mm-yy'
//                    });
           

        });
    </script>
     
    <h2>
        SelectDateTime</h2>
   
     <% using (Html.BeginForm())
       {%>
       
    <%= Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Fields</legend>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.LocationSetCode) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.LocationSetCodeFullName, new { @readonly = "readonly", @class = "textbox" })%>
            <%= Html.ValidationMessageFor(model => model.LocationSetCode) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.DateTimeIn) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.DateTimeIn, new { @readonly = "readonly" })%>
            <%= Html.ValidationMessageFor(model => model.DateTimeIn)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.WorkType) %>
        </div>
        <div class="editor-field">
           
            <%=Html.DropDownListFor(model => model.WorkType, new SelectList(
                  new List<Object>{ 
                       new { value = "งานติดตั้ง" , text = "งานติดตั้ง"  },
                       new { value = "งานเซอร์วิส" , text = "งานเซอร์วิส" },
                       new { value = "งานเร่งด่วน" , text = "งานเร่งด่วน"}
                    },
                  "value",
                  "text",
                   "งานติดตั้ง"))%>
     
            <%= Html.ValidationMessageFor(model => model.WorkType)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.SerialNo) %>
        </div>
        <div class="editor-field">
            <%=@Html.DropDownListFor(model => model.locationMachineSets, Model.locationMachineSetSelect,"-please select item-")%>
            <%= Html.ValidationMessageFor(model => model.SerialNo) %>
        </div>
         <div>
        <p class="errormessage" align="left">
            <%=TempData["errormessage"]%>
        </p>
    </div>
     <%-- <div class="editor-label">
            <%= Html.LabelFor(model => model.ModelId) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.ModelId, new { @readonly = "readonly" })%>
            <%= Html.ValidationMessageFor(model => model.ModelId)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.Brand) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Brand, new  { @readonly = "readonly" })%>
            <%= Html.ValidationMessageFor(model => model.Brand) %>
        </div> --%>
         <p>
            <input type="submit" class="buttonSummit" value="Next" />
        </p>
    </fieldset>
    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>
    <% } %> 
</asp:Content> 
